package seqlist.stack;
//栈的测试模块
public class StackTest {
    public static void main(String[] args) {
        MyStack<Integer> stack = new MyStack<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        System.out.println(stack);
        System.out.println(stack.pop());//弹出栈顶
        System.out.println(stack);
        System.out.println(stack.peck());//查看栈顶元素
        System.out.println(stack);
    }
}
